package com.threefish.modules.sys.mapper;

import com.threefish.modules.sys.entity.Happiness;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;

/**
 * @author 黄川 huchuc@vip.qq.com
 * @date: 2018/9/10
 */
@Mapper
public interface HappinessDao {

    @Select("SELECT * FROM happiness WHERE id = #{id}")
    Happiness findHappinessById(@Param("id") int city);

    Happiness findHappinessByCity(String city);

    int insertHappiness(HashMap<String, Object> map);

}